package com.yan;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.yan.demo2.Book;
import com.yan.demo4.Student;

import java.lang.reflect.Field;
import java.util.Date;

/**
 * @author taoge
 * @Date 2024/8/14 20:03
 * @Description
 */
public class test {
    public static void main(String[] args) {
        Student student = new Student("yft" , 18 ,new Book("红楼梦" , "hpy" , 19.9 , new Date()));
        Class c = Student.class;
        String jsonString = JSON.toJSONString(student);
        System.out.println("jsonString = " + jsonString);

    }
}
